
const prCarProBatch =require("../../controller/product/pr-car")
const reLifeProBatch =require("../../controller/product/re-life")
const reIllnessProBatch =require("../../controller/product/re-illness")
const lifeIllnessProBatch =require("../../controller/product/life-illness")

module.exports= {
    post: {

        // 私家车意外
        'product-pr-car':async (ctx, next) => {
            ctx.body = await prCarProBatch(ctx.request.body);
            next();
        },

        // 定期重疾
        'product-re-illness': async (ctx, next) => {
            ctx.body = await reIllnessProBatch(ctx.request.body);
            next();
        },

        // 终身重疾
        'product-life-illness':async (ctx, next) => {
            ctx.body = await lifeIllnessProBatch(ctx.request.body);
            next();
        },

        // 定期寿险
        'product-re-life':async (ctx, next) => {
            ctx.body = await reLifeProBatch(ctx.request.body);
            next();
        }
    }
}